﻿@model MiniBottles.Models.GuestBook

@{
    ViewBag.Title = @AppResource.AddComment;
}

<h5 class="title">@ViewBag.Title</h5>
<div class="greystrip"></div>
<div class="whitestrip"></div>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    

        <div class="editor-label">
            @Html.LabelFor(model => model.Nick)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nick)
            @Html.ValidationMessageFor(model => model.Nick)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.WWW)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.WWW)
            @Html.ValidationMessageFor(model => model.WWW)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Content)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Content)
            @Html.ValidationMessageFor(model => model.Content)
        </div>

        <p>
            <input type="submit" value="@AppResource.Save" />
        </p>
    
}


@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
